{set:$seo_data=array(); $site_config=new Config('site_config');$site_config=$site_config->getInfo();}
{set:$seo_data['title']="用户注册_".$site_config['name']}
{set:seo::set($seo_data);}

<section class="reg">
	<div class="form">
		<form action='{url:/simple/reg_act}' method='post'>
			<input type="hidden" name='callback' />
			<ul>
				<li class="user-info">
					<input class='form-control' placeholder="邮箱" initmsg="输入正确" type="text" name='email' pattern="email" alt="填写正确格式" />
				</li>

				<li class="user-info">
					<input class='form-control' placeholder="用户名" initmsg="输入正确" type="text" name='username' pattern="^[\w\u0391-\uFFE5]{2,20}$" alt="填写2-20个字符" />
				</li>

				<li class="user-info">
					<input class='form-control' placeholder="密码" type="password" name='password' pattern="^\S{6,32}$" bind='repassword' alt='填写6-32个字符' />
				</li>

				<li class="user-info">
					<input type="password" class='form-control' placeholder="确认密码" name='repassword' pattern="^\S{6,32}$" bind='password' alt='重复上面密码' />
				</li>

				<li class="user-info">
					<input type='text' class='form-control' placeholder="填写下面验证码" name='captcha' pattern='^\w{5,10}$' alt='填写下面验证码' />
					<img src='{url:/simple/getCaptcha}' id='captchaImg' /><span class="light_gray">&nbsp;&nbsp;<a class="link" href="javascript:changeCaptcha('{url:/simple/getCaptcha}');">换一张</a></span>
				</li>

                <li class="enter">
		        	<button type="submit" class='btn btn-xs btn-primary col-lg-5 col-xs-5'>立即注册</button>
		        </li>
			</ul>
		</form>
	</div>
</section>

<script type='text/javascript'>
$(function(){
	{set:$callback = IReq::get('callback') ? IFilter::clearUrl(IReq::get('callback')) : IUrl::getRefRoute()}
	$('input[name="callback"]').val("{$callback}");
	//表单回填
	var formObj = new Form();
	formObj.init({"email":"{$this->email}","username":"{$this->username}"});
});
</SCRIPT>